/**
 * 功能描述 导航栏
 */

define(function (require, exports, module) {
	var Subnav = require("subnav");
	
    var instance = {
        initComponent:function (params,widget){
			var subnav=new Subnav({
				parentNode:".J-subnav",
				model:{
					title:"审批流程配置",
					items :[{
						id:"return",
						type : "button",
						text:"返回",
						show:false,
						handler:function(){
							var form= widget.get("form");
							var subnav= widget.get("subnav");
							widget.get("grid").refresh();
							form.reset();
							widget.hide([".J-form",".J-appGrid",".J-appForm"]).show(".J-grid");
							subnav.hide(["return"]);
						}
					}],
				}
			});
        	widget.set("subnav",subnav);

        }
    };
    module.exports = instance;
});
